<template>
	<div>
		<el-dialog title="查看详情" width="800px" @open="open" class="icon-dialog" :visible.sync="show" :before-close="closeForm" append-to-body>
			<table class="table table-bordered" align="center" width="100%" style="word-break:break-all; margin-bottom:50px;  font-size:13px;">
				<tbody>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_id')}}：</td>
						<td>
							{{form.id}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_short_name')}}：</td>
						<td>
							{{form.short_name}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_name')}}：</td>
						<td>
							{{form.name}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.CapitalType_multiple')}}：</td>
						<td>
							{{form.multiple_table}}
						</td>
				 </tr> 
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_number_min')}}：</td>
						<td>
							{{form.number_min}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_number_max')}}：</td>
						<td>
							{{form.number_max}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_time_min')}}：</td>
						<td>
							{{form.time_min}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_time_max')}}：</td>
						<td>
							{{form.time_max}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_warning')}}：</td>
						<td>
							{{form.warning}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_close')}}：</td>
						<td>
							{{form.close}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_times')}}：</td>
						<td>
							{{form.times}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_limit_delay')}}：</td>
						<td>
							{{form.limit_delay}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_profit')}}：</td>
						<td>
							{{form.profit}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.CapitalType_status')}}：</td>
						<td>
							<span v-if="form.status == '1'">开启</span>
							<span v-if="form.status == '0'">关闭</span>
						</td>
				</tr>
				<tr>
						<td class="title" width="100">{{$t('field.CapitalType_create_time')}}：</td>
						<td>
							{{parseTime(form.create_time)}}
						</td>
				</tr>
				 <tr>
						<td class="title" width="100">{{$t('field.CapitalType_fee')}}：</td>
						<td>
							{{form.fee}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.CapitalType_explain1')}}：</td>
						<td>
							{{form.explain1}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.CapitalType_explain2')}}：</td>
						<td>
							{{form.explain2}}
						</td>
				 </tr>
				</tbody>
			</table>
		</el-dialog>
	</div>
</template>
<script>
import { detail  } from '@/api/app/capitaltype'
export default {
	name:'capitalTypedetail',
	props: {
		show: {
			type: Boolean,
			default: true
		},
		size: {
			type: String,
			default: 'mini'
		},
		info: {
			type: Object,
		},
	},
	data() {
		return {
			form:{
			},
		}
	},
	watch:{
		show(val){
			if(val){
			}
		}
	},
	methods: {
		open(){
			detail(this.info).then(res => {
				this.form = res.data
			})
		},
		closeForm(){
			this.$emit('update:show', false)
		}
	}
}
</script>
<style  lang="scss">
@import '@/assets/scss/common.scss'
</style>
